#include <iostream>
#include <string>
#include "Server.hpp"
using namespace std;



int main(int argc, char* argv[])
{
    if(argc != 3)
    {
        cout << "Incorrect use, correct use :"  << endl << "        ./server local_ip local_port" << endl;
        return 1;
    }

    string ip = argv[1];
    uint16_t port = stoi(argv[2]);

    Server server(ip, port);
    server.Init();

    server.Start();
    
    return 0;
}